<fieldset>

<?php $form=$this->beginWidget('BootstrapActiveForm', array(
	'id'=>'prize-form',
	'enableAjaxValidation'=>true,
	'htmlOptions'=>array('enctype'=>'multipart/form-data'),
)); ?>

	<?php echo $form->textFieldBlock($model,'name',array('class'=>'xlarge','maxlength'=>255)); ?>

	<?php echo $form->textAreaBlock($model,'description',array('class'=>'xxlarge','rows'=>6)); ?>

	<?php echo $form->textFieldBlock($model,'value',array('class'=>'xlarge','maxlength'=>255)); ?>

	<div class="clearfix">
		<?php echo $form->labelEx($model,'upload'); ?>
		<div class="input">
			<?php echo $form->fileField($model,'upload'); ?>
			<?php if (!$prize->isNewRecord): ?>
				<div class="image"><?php echo $prize->renderImage(IMAGE_VERSION_LARGE); ?></div>
			<?php endif; ?>
			<?php echo $form->error($model,'upload'); ?>
		</div>
	</div>

	<div class="actions">
		<?php echo CHtml::submitButton(Yii::t('admin','Save'),array('class'=>'btn primary')); ?>
	</div>

<?php $this->endWidget(); ?>

</fieldset>